package com.hshoesmall.demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hshoesmall.demo.model.dto.ShoesUserLoginDTO;
import com.hshoesmall.demo.model.dto.ShoesUserRegisterDTO;
import com.hshoesmall.demo.model.entity.ShoesUser;

public interface ShoesUserService extends IService<ShoesUser> {//service层需要继承IService，当然实现层也要继承对应的实现类

    /**
     * 注册功能
     *
     * @param dto
     * @return 注册对象
     */
    ShoesUser executeRegister(ShoesUserRegisterDTO dto);
    /**
     * 获取用户信息
     *
     * @param uaccount
     * @return dbUser
     */
    ShoesUser getUserByUsername(String uaccount);
    /**
     * 用户登录
     *
     * @param dto
     * @return 生成的JWT的token
     */
    String executeLogin(ShoesUserLoginDTO dto);

}
